<template>
  <div class="absolute-container">
    <slot />
  </div>
</template>

<script>
export default {
  name: "AbsoluteContainer",
  props: {},
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
.absolute-container {
  position: absolute;
  width: 100%;
  transition: 0.3s;
}

.main-container {
  .topbar-container + .main .absolute-container {
    height: calc(100% - #{$g-topbar-height});
  }

  .tabbar-container + .topbar-container + .main .absolute-container {
    height: calc(100% - #{$g-tabbar-height} - #{$g-topbar-height});
  }
}
</style>
